package model;

import java.sql.Date;
import java.util.ArrayList;

public class Microcycle {
	private User user;
	private ArrayList<Exercise> exercises;
	private Date date;
	private int duration;

	public Microcycle(User user, Date date, int duration) {
		this.user = user;
		this.exercises = new ArrayList<Exercise>();
		this.date = date;
		this.duration = duration;
	}

	public void addExercise(Exercise exercise) {
		this.exercises.add(exercise);
	}

	public void removeExercise(Exercise exercise) {
		this.exercises.remove(exercise);
	}

	public void removeExercise(int position) {
		this.exercises.remove(position);
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public int getDuration() {
		return duration;
	}

	public void setDuration(int duration) {
		this.duration = duration;
	}
}
